<md-dialog   style="width:600px;">
  <md-toolbar>
    <div class="md-toolbar-tools" >
      <h1>修改用户密码</h1>
    </div>
  </md-toolbar>
  <md-content class="sticky-container">
    <div class="dialog-content">
      <form name="addForm">     
        <md-input-container flex>
          <label>旧密码</label>
          <input type="password" ng-model="userInfo.oldPWD" md-minlength="6" md-maxlength='16' ng-pattern="/^(?![0-9]+$)(?![_]+$)(?![a-zA-Z]+$)[0-9A-Za-z_]{6,16}$/"   name="userU" required >
          <div ng-messages="addForm.userU.$error">
            <div ng-message="required">*必填</div>
            <div ng-message="check-repeat">*用户名重复</div>
            <div ng-message="md-maxlength">用户名不超过16位</div>
            <div ng-message="md-minlength">用户名不得少于6位</div>
            <div ng-message="pattern">请输入6至16位字母数字组合密码</div>
          </div>
        </md-input-container>
        <md-input-container flex>
          <label>新密码</label>
          <input type="password" id = 'pwd1' ng-model="userInfo.newPWD" name="new" md-minlength="6" md-maxlength='16' ng-pattern="/^(?![0-9]+$)(?![_]+$)(?![a-zA-Z]+$)[0-9A-Za-z_]{6,16}$/" required>
          <div ng-messages="addForm.new.$error">
            <div ng-message="required">*必填</div>
            <div ng-message="md-maxlength">用户名不超过16位</div>
            <div ng-message="md-minlength">用户名不得少于6位</div>
            <div ng-message="pattern">请输入6至16位字母数字组合密码</div>
          </div>
        </md-input-container>
         <md-input-container flex>
          <label>密码确认</label>
          <input type="password" id = 'pwd2' ng-model="userInfo.ensurePwd" name="ensure" md-minlength="6" md-maxlength='16'   ng-pattern="/^(?![0-9]+$)(?![_]+$)(?![a-zA-Z]+$)[0-9A-Za-z_]{6,16}$/" required>
          <div ng-messages="addForm.ensure.$error">
            <div ng-message="required">*必填</div>
            <div ng-message="md-maxlength">用户名不超过16位</div>
            <div ng-message="md-minlength">用户名不得少于6位</div>
            <div ng-message="pattern">请输入6至16位字母数字组合密码</div>
          </div>
        </md-input-container>
      </form>
    </div>
  </md-content>
  <div class="md-actions" layout="row">
    <span flex></span>
    <md-button ng-click="infoSave(addForm.$invalid)" class="md-primary" ng-disabled="addForm.$invalid">
      确定
    </md-button>
    <md-button ng-click="cancel()">
      取消
    </md-button>
  </div>
</md-dialog>